<h1>Dernière entrée</h1>
<?php
$req = $bdd->query('SELECT * FROM recettes ORDER BY id DESC LIMIT 1');
$donnees = $req->fetch(); 
//echo $url;
?>
<p><img src="<?php echo $donnees['image']; ?>" width="100" class="galerie-gauche">
<b><a href="index.php?page=recettes&id=<?php echo $donnees['id']; ?>"><?php echo $donnees['nom']; ?></a></b></p>
<p><?php echo substr($donnees['notes'],0,200); ?></p>
<div class="menu">
	<a href="index.php?page=recettes&id=<?php echo $donnees['id']; ?>">Voir la recette</a>
</div>
<?php
$req->closeCursor();
?>